Golang - 型別宣告



string

var test1 string = "123"

int

var test1 int = 1

float64

var test1 float64 = 1.1

bool

var test1 bool = true

短變數宣告

test1 := 100
test2, test3 := 1.1, "123"
#golang #GO







你可能感興趣的文章

CSS-[盒子的型態]- inline boxes | inline-block | block

CSS-[盒子的型態]- inline boxes | inline-block | block

6. SpringBoot使用jms聆聽多個MQ(依據yml動態新增)

6. SpringBoot使用jms聆聽多個MQ(依據yml動態新增)

MTR04_0811

MTR04_0811






留言討論